package com.yuedou.api.config;

/**
 * @创建者：zhouwei
 * @创建时间：2022/5/13
 * @描述：
 */
public enum  DynamicTableTreadLocal {
    INSTANCE;
    private ThreadLocal<String> tableName = new ThreadLocal<>();

    public String getTableName() {
        return tableName.get();
    }

    public void setTableName(String tableName) {
        this.tableName.set(tableName);
    }

    public void remove() {
        tableName.remove();
    }
}
